# $Id: PKGBUILD 170167 2012-11-04 02:30:50Z eric $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Orivej Desh <smpuj@bk.ru>
# Maintainer: Orivej Desh <smpuj@bk.ru>

pkgname=gsasl
pkgver=1.8.0
pkgrel=2
pkgdesc="Simple Authentication and Security Layer framework and a few common SASL mechanisms"
arch=("i686" "x86_64")
url="http://josefsson.org/gsasl/"
license=("GPL")
depends=('gnutls' 'libidn' 'krb5' 'libgcrypt')
source=("ftp://ftp.gnu.org/gnu/gsasl/$pkgname-$pkgver.tar.gz")
md5sums=('982fe54a20016aa46a871c084c990c36')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  ./configure --prefix=/usr --with-gssapi-impl=mit
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir" install
  rm "$pkgdir/usr/share/info/dir" "$pkgdir/usr/lib/libgsasl.la"
}
